﻿@inject IStringLocalizer<ImageViewerPreviewList> Localizer

<div class="images img-ph mt-3">
    <div class="images-item">
        <ImageViewer Url="_content/BootstrapBlazor.Shared/images/bird.jpeg" PreviewList="PreviewList" />
    </div>
</div>

@code {
    private List<string> PreviewList { get; } = new();

    /// <summary>
    /// OnInitialized
    /// </summary>
    protected override void OnInitialized()
    {
        base.OnInitialized();

        PreviewList.AddRange(new string[]
        {
            "_content/BootstrapBlazor.Shared/images/ImageList1.jpeg",
            "_content/BootstrapBlazor.Shared/images/ImageList2.jpeg"
        });
    }
}
